<%-- 
    Document   : dao2
    Created on : 2014/8/20, 下午 02:12:19
    Author     : gjun
--%>

<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%
    dao.BaseDAO y= new dao.BaseDAO();//update person set username='"+username +"' , tel='"+tel +"' , birthday='"+birthday+ "' where id=" + id
    String sql="update person set username=?, tel=?, birthday=? where id=?";
    System.out.println(sql);
    String ary[]={"JJJjk's Dog","09-5587457","1996/8/7","29"};
    int x=y.modify(sql, ary);

%>
<!DOCTYPE html>
<html>
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
        <title>JSP Page</title>
    </head>
    <body>
        <h1>Update DAO</h1>
    </body>
</html>
